package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingProjectMapper {
    Page<NursingProjectVo> selectByPage(String name, Integer status);

    void insert(NursingProject nursingProject);

    void deleteById(Long id);

    void updateById(NursingProject nursingProject);

    NursingProjectVo selectById(Long id);

    // List<NursingProject> selectByStatus(@Param("status") int status);

    Long getProjectRefCount(Long id);
}
